﻿<%@ Page Title="Adminpage" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Adminpage.aspx.cs" Inherits="LootPoints.Pages.Adminpage" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    
    <style type="text/css">
        #tableOverview {
            margin-top: 20px;
            margin-left: auto;
            margin-right: auto;
            width: 500px;
            text-align: center;
        }
        .headerRow {
            font-family: Constantia;
            font-weight: bold;
            font-size: 11px;
        }
        .Row {
            font-family: Constantia;
            font-weight: normal;
            font-size: 11px;
        }
        .tbControl {
            font-family: Constantia;
            font-size: 11px;
            width: 99px;
            text-align: center;
        }
        .tbCriteria {
            font-family: Constantia;
            font-size: 11px;
            width: 195px;
            text-align: left;
        }
        .tbWeight {
            font-family: Constantia;
            font-size: 11px;
            width: 70px;
            text-align: center;
        }
        btnControl {
            border: none;
            background-color: transparent;
            width: auto;
            height: auto;
            color: slategray;
        }
            btnControl :hover {
                cursor: pointer;
                text-decoration: underline;
            }
            btnControl :visited {
                color: slategray;
            }
        .pnlAdd {
            width: 150px;
            border: 1px solid Black;
            background-color: white;
            text-align: left;
            padding: 10px 10px 10px 10px;
        }
        .pnlTbControl {
            font-family: Constantia;
            font-size: 11px;
            width: 146px;
        }
        .modalBackground {
            background-color:#B8B8BF;
            filter:alpha(opacity=40);
            opacity:0.5;
        }
        .tbFilter {
            font-family: Constantia;
            font-weight: normal;
            font-size: 11px;
            border: none;
            color: grey;
            text-align: inherit;
            margin-bottom: 5px;
        }
    </style>

    <div id="tableOverview">
        
        <asp:Panel ID="pnlAdmin" runat="server">
            <p>
                <a href="Progress.aspx">Progress overview</a>
            </p>
            <p>
                <a href="Overview.aspx">Overview</a>
                    &nbsp;|&nbsp;
                <a><asp:LinkButton ID="lbtnAdd" runat="server" Text="Add" CausesValidation="false" ToolTip="Add character" /></a>
                    &nbsp;|&nbsp;
                <a><asp:LinkButton ID="lbtnLogoff" runat="server" Text="Logoff" CausesValidation="false" ToolTip="Logoff" OnClick="lbtnLogoff_Click" /></a>
            </p>

            <asp:ModalPopupExtender ID="mpeAdd" runat="server" TargetControlID="lbtnAdd" PopupControlID="pnlAdd" BackgroundCssClass="modalBackground"></asp:ModalPopupExtender>

            <asp:Panel ID="pnlAdd" runat="server" CssClass="pnlAdd">
                <p style="width:150px; text-align:center; text-transform:uppercase; font-weight:bold;">
                    <asp:Label ID="lblTitle" runat="server" Text="add character" />
                </p>
                <p>
                    Character:
                    <asp:Label ID="lblCharacter" runat="server" CssClass="errorp" />
                    <asp:RequiredFieldValidator ID="reqCharacter" runat="server" CssClass="errorp" ControlToValidate="tbCharacter" ValidationGroup="valAdd">*</asp:RequiredFieldValidator>
                    <a><asp:LinkButton ID="lbtnLoad" runat="server" Text="Load" CausesValidation="false" ToolTip="Load from Battlenet" OnClick="lbtnLoad_Click" /></a><br />
                    <asp:TextBox ID="tbCharacter" runat="server" CssClass="pnlTbControl" />
                </p>
                <p>
                    Race:
                    <asp:RequiredFieldValidator ID="reqRace" runat="server" CssClass="errorp" ControlToValidate="ddRace" ValidationGroup="valAdd">*</asp:RequiredFieldValidator><br />
                    <asp:DropDownList ID="ddRace" runat="server" CssClass="pnlTbControl" Width="150">
                        <asp:ListItem Text="Human" />
                        <asp:ListItem Text="Dwarf" />
                        <asp:ListItem Text="Night Elf" />
                        <asp:ListItem Text="Gnome" />
                        <asp:ListItem Text="Draenei" />
                        <asp:ListItem Text="Worgen" />
                        <asp:ListItem Text="Pandaren" />
                    </asp:DropDownList>
                </p>
                <p>
                    Class:
                    <asp:RequiredFieldValidator ID="reqClass" runat="server" CssClass="errorp" ControlToValidate="ddClass" ValidationGroup="valAdd">*</asp:RequiredFieldValidator><br />
                    <asp:DropDownList ID="ddClass" runat="server" CssClass="pnlTbControl" Width="150">
                        <asp:ListItem Text="Warrior" />
                        <asp:ListItem Text="Paladin" />
                        <asp:ListItem Text="Hunter" />
                        <asp:ListItem Text="Rogue" />
                        <asp:ListItem Text="Priest" />
                        <asp:ListItem Text="Shaman" />
                        <asp:ListItem Text="Mage" />
                        <asp:ListItem Text="Warlock" />
                        <asp:ListItem Text="Monk" />
                        <asp:ListItem Text="Druid" />
                        <asp:ListItem Text="Death Knight" />
                    </asp:DropDownList>
                </p>
                <p>
                    Level:
                    <asp:RequiredFieldValidator ID="reqLevel" runat="server" CssClass="errorp" ControlToValidate="ddLevel" ValidationGroup="valAdd">*</asp:RequiredFieldValidator><br />
                    <asp:DropDownList ID="ddLevel" runat="server" CssClass="pnlTbControl" Width="150">
                        <asp:ListItem Text="01" /><asp:ListItem Text="02" /><asp:ListItem Text="03" /><asp:ListItem Text="04" /><asp:ListItem Text="05" /><asp:ListItem Text="06" /><asp:ListItem Text="07" /><asp:ListItem Text="08" /><asp:ListItem Text="09" /><asp:ListItem Text="10" />
                        <asp:ListItem Text="11" /><asp:ListItem Text="12" /><asp:ListItem Text="13" /><asp:ListItem Text="14" /><asp:ListItem Text="15" /><asp:ListItem Text="16" /><asp:ListItem Text="17" /><asp:ListItem Text="18" /><asp:ListItem Text="19" /><asp:ListItem Text="20" />
                        <asp:ListItem Text="21" /><asp:ListItem Text="22" /><asp:ListItem Text="23" /><asp:ListItem Text="24" /><asp:ListItem Text="25" /><asp:ListItem Text="26" /><asp:ListItem Text="27" /><asp:ListItem Text="28" /><asp:ListItem Text="29" /><asp:ListItem Text="30" />
                        <asp:ListItem Text="31" /><asp:ListItem Text="32" /><asp:ListItem Text="33" /><asp:ListItem Text="34" /><asp:ListItem Text="35" /><asp:ListItem Text="36" /><asp:ListItem Text="37" /><asp:ListItem Text="38" /><asp:ListItem Text="39" /><asp:ListItem Text="40" />
                        <asp:ListItem Text="41" /><asp:ListItem Text="42" /><asp:ListItem Text="43" /><asp:ListItem Text="44" /><asp:ListItem Text="45" /><asp:ListItem Text="46" /><asp:ListItem Text="47" /><asp:ListItem Text="48" /><asp:ListItem Text="49" /><asp:ListItem Text="50" />
                        <asp:ListItem Text="51" /><asp:ListItem Text="52" /><asp:ListItem Text="53" /><asp:ListItem Text="54" /><asp:ListItem Text="55" /><asp:ListItem Text="56" /><asp:ListItem Text="57" /><asp:ListItem Text="58" /><asp:ListItem Text="59" /><asp:ListItem Text="60" />
                        <asp:ListItem Text="61" /><asp:ListItem Text="62" /><asp:ListItem Text="63" /><asp:ListItem Text="64" /><asp:ListItem Text="65" /><asp:ListItem Text="66" /><asp:ListItem Text="67" /><asp:ListItem Text="68" /><asp:ListItem Text="69" /><asp:ListItem Text="70" />
                        <asp:ListItem Text="71" /><asp:ListItem Text="72" /><asp:ListItem Text="73" /><asp:ListItem Text="74" /><asp:ListItem Text="75" /><asp:ListItem Text="76" /><asp:ListItem Text="77" /><asp:ListItem Text="78" /><asp:ListItem Text="79" /><asp:ListItem Text="80" />
                        <asp:ListItem Text="81" /><asp:ListItem Text="82" /><asp:ListItem Text="83" /><asp:ListItem Text="84" /><asp:ListItem Text="85" Selected="True" /><asp:ListItem Text="86" /><asp:ListItem Text="87" /><asp:ListItem Text="88" /><asp:ListItem Text="89" /><asp:ListItem Text="90" />
                    </asp:DropDownList>
                </p>
                <p>
                    Group:<br />
                    <asp:TextBox ID="tbGroup" runat="server" CssClass="pnlTbControl" />
                </p>
                <p>
                    EP:
                    <asp:RequiredFieldValidator ID="reqEP" runat="server" CssClass="errorp" ControlToValidate="tbEP" ValidationGroup="valAdd">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="regEP" runat="server" CssClass="errorp" ControlToValidate="tbEP" ValidationGroup="valAdd" ValidationExpression="^\d+$">* only numbers</asp:RegularExpressionValidator><br />
                    <asp:TextBox ID="tbEP" runat="server" CssClass="pnlTbControl" />
                </p>
                <p>
                    GP:
                    <asp:RequiredFieldValidator ID="reqGP" runat="server" CssClass="errorp" ControlToValidate="tbGP" ValidationGroup="valAdd">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="regGP" runat="server" CssClass="errorp" ControlToValidate="tbGP" ValidationGroup="valAdd" ValidationExpression="^\d+$">* only numbers</asp:RegularExpressionValidator><br />
                    <asp:TextBox ID="tbGP" runat="server" CssClass="pnlTbControl" />
                </p>
                <p>
                    Is admin:&nbsp;<asp:CheckBox ID="cbAdmin" runat="server" /><br />
                </p>
                <p>
                    Email:
                    <asp:RequiredFieldValidator ID="reqE" runat="server" CssClass="errorp" ControlToValidate="tbE" ValidationGroup="valAdd">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="regE" runat="server" CssClass="errorp" ControlToValidate="tbE" ValidationGroup="valAdd" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">* provide valid email</asp:RegularExpressionValidator><br />
                    <asp:TextBox ID="tbE" runat="server" CssClass="pnlTbControl" />
                </p>
                <p>
                    Password:
                    <asp:RequiredFieldValidator runat="server" ID="reqP" CssClass="errorp" ControlToValidate="tbP" ValidationGroup="valAdd">* provide password</asp:RequiredFieldValidator><br />
                    <asp:TextBox ID="tbP" runat="server" CssClass="pnlTbControl" TextMode="Password" ValidationGroup="valAdd" />
                </p>
                <p>
                    Repeat password:
                    <asp:CompareValidator runat="server" ID="compP" CssClass="errorp" ControlToValidate="tbRP" ControlToCompare="tbP" ValidationGroup="calAdd">*</asp:CompareValidator>
                    <asp:RequiredFieldValidator runat="server" ID="reqRP" CssClass="errorp" ControlToValidate="tbRP" ValidationGroup="valAdd">*</asp:RequiredFieldValidator><br />
                    <asp:TextBox ID="tbRP" runat="server" CssClass="pnlTbControl" TextMode="Password" ValidationGroup="valAdd" />
                </p>
                <div>
                    <div style="float:left;">
                        <asp:Button ID="btnOK" runat="server" Text="OK" Width="70px" CssClass="Row" ValidationGroup="valAdd" OnClick="btnOK_Click" />
                    </div>
                    <div style="float:right;">
                        <asp:Button ID="btnCancel" runat="server" Text="CANCEL" Width="70px" CssClass="Row" OnClick="btnCancel_Click" />
                    </div>
                </div>
            </asp:Panel>

        </asp:Panel>

        <asp:Table ID="table" runat="server" width="600px">
            <asp:TableRow>
                <asp:TableCell Width="100px" HorizontalAlign="Left"  ><asp:TextBox runat="server" CssClass="tbFilter" Width="090px" ID="tbFilterGR" OnTextChanged="tbFilterGR_TextChanged" CausesValidation="false" AutoPostBack="true" onclick="this.value=''" Text="filter..."/></asp:TableCell>
                <asp:TableCell Width="025px"></asp:TableCell>
                <asp:TableCell Width="175px" HorizontalAlign="Left"  ><asp:TextBox runat="server" CssClass="tbFilter" Width="165px" ID="tbFilterCH" OnTextChanged="tbFilterCH_TextChanged" CausesValidation="false" AutoPostBack="true" onclick="this.value=''" Text="filter..."/></asp:TableCell>
                <asp:TableCell Width="100px" HorizontalAlign="Center"><asp:TextBox runat="server" CssClass="tbFilter" Width="090px" ID="tbFilterEP" OnTextChanged="tbFilterEP_TextChanged" CausesValidation="false" AutoPostBack="true" onclick="this.value=''" Text="filter..."/></asp:TableCell>
                <asp:TableCell Width="100px" HorizontalAlign="Center"><asp:TextBox runat="server" CssClass="tbFilter" Width="090px" ID="tbFilterGP" OnTextChanged="tbFilterGP_TextChanged" CausesValidation="false" AutoPostBack="true" onclick="this.value=''" Text="filter..."/></asp:TableCell>
                <asp:TableCell Width="100px" HorizontalAlign="Center"><asp:TextBox runat="server" CssClass="tbFilter" Width="090px" ID="tbFilterPR" OnTextChanged="tbFilterPR_TextChanged" CausesValidation="false" AutoPostBack="true" onclick="this.value=''" Text="filter..."/></asp:TableCell>
            </asp:TableRow>
            <asp:TableHeaderRow CssClass="headerRow">
                <asp:TableHeaderCell Width="100px" Text="Group" HorizontalAlign="Left" />
                <asp:TableHeaderCell Width="25px" />
                <asp:TableHeaderCell Width="175px" Text="Character" HorizontalAlign="Left" />
                <asp:TableHeaderCell Width="100px" Text="EP" HorizontalAlign="Center" />
                <asp:TableHeaderCell Width="100px" Text="GP" HorizontalAlign="Center" />
                <asp:TableHeaderCell Width="100px" Text="PR" HorizontalAlign="Center" />
            </asp:TableHeaderRow>
        </asp:Table>
        <p>
            &nbsp;
        </p>
        <asp:Table ID="tableReference" runat="server" Width="400px">
            <asp:TableHeaderRow CssClass="headerRow">
                <asp:TableHeaderCell Width="075px" HorizontalAlign="Center" Text="#" />
                <asp:TableHeaderCell Width="025px" />
                <asp:TableHeaderCell Width="200px" HorizontalAlign="Left" Text="Criteria" />
                <asp:TableHeaderCell Width="025px" />
                <asp:TableHeaderCell Width="075px" HorizontalAlign="Center" Text="Weight" />
            </asp:TableHeaderRow>
        </asp:Table>
        <p style="width:600px; text-align:center;">
            <asp:Button ID="btnCleanLoot" runat="server" Text="Clean-up double loot" OnClick="btnCleanLoot_Click" />
             <br />
            <asp:Label ID="lblCleanLoot" runat="server" />
        </p>
    </div>

</asp:Content>
